# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nitrokey-app
pkgver=1.4.1
pkgrel=0
arch="all"
url="https://nitrokey.com/"
pkgdesc="Nitrokey's Application"
license="GPL-3.0-or-later"
makedepends="cmake libnitrokey-dev qt5-qtbase-dev qt5-qtsvg-dev qt5-qttools-dev cppcodec bash-completion"
source="https://github.com/Nitrokey/nitrokey-app/archive/v$pkgver/nitrokey-app-v$pkgver.tar.gz"
subpackages="$pkgname-bash-completion"
options="!check" # No tests

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="bbebdf8b5a4bdea0fd6f6e0b9af2ef95d4421c2f771cb1bf9d261fb3316287b0bcf89ace0fbf240c7f4cbe8d808a9fa1172e104f9e5806452d19bb1bc73aee6c  nitrokey-app-v1.4.1.tar.gz"
